import request from '@/utils/request'

export function addBrand (data) {
  return request({
    url: '/v01/recommends/add', // 假地址 自行替换
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: data
  })
}

export function getAllBrand () {
  return request({
    url: '/v01/recommends/getall',
    method: 'get'
  })
}

export function updateBrand (param, data) {
  return request({
    url: '/v01/recommends/update',
    params: {
      id: param
    },
    method: 'put',
    data: data
  })
}

export function deleteBrand (data) {
  return request({
    url: '/v01/recommends/delete' + '?id=' + data,
    method: 'delete'
  })
}
